package day02;

public class StringBuilderDemo01 {
    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("天气不错");
        builder.append("!")
                .insert(0,"今天")
                .setCharAt(0,'昨');
        builder.reverse();  //将字符序列翻转
        //toString()  方法可以将字符序列转关字符串，已达到用String相关方法的作用

        builder.toString();
        System.out.println(builder);
    }
}
